<?php
require_once('../phplib/include.inc.php');
require_once('../phplib/util/CheckLogin.inc.php');

class Admin_Delarticle{
	public function DoDel(){
		$R = $_REQUEST;
		$c_id = intval($R['a_id']);
		$sql = "DELETE FROM article WHERE a_id=$c_id";
		$db = getDb();
		if(!$db->Execute($sql)) PageBase::Error("unknow error");
		PageBase::Go("../admin/index.php");
	}
}
$a = new Admin_Delarticle();
$a->DoDel();
?>